package com.balabala.gym_user;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.context.annotation.Bean;
import org.springframework.web.client.RestTemplate;

/**
 * @Author 何涛
 * @Date: 2023/04/29/ 23:25
 * @description 用户微服务启动类
 */
@SpringBootApplication
@EnableDiscoveryClient
@MapperScan("com.balabala.gym_user.mapper")
@EnableFeignClients({"com.balabala"})
public class UserApplication8001 {
    public static void main(String[] args) {
        SpringApplication.run(UserApplication8001.class);
    }

    @Bean
    RestTemplate restTemplate()
    {
        return new RestTemplate();
    }
}
